package br.ufrj.dcc.org2.signature;

import java.util.BitSet;

public class BloomFilter {
	private BitSet data;
	
	public BloomFilter(int size) // construtor
	{
		data = new BitSet(size);
	}

	public boolean getKey(int position) {
		return data.get(position);
	}
	
	public void setKey(int position) {
		data.set(position);
		System.out.println("Bit " + position + " setado.");
	}
	
	public String getBloomFilter() {		
		return data.toString();
	}
}
